package cn.ffcs.uec.staff.manager.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import cn.ffcs.uec.staff.dao.UecStaffInfoDao;
import cn.ffcs.uec.staff.manager.UecStaffInfoManager;
import cn.ffcs.uec.staff.model.UecStaffInfo;
import cn.ffcs.uec.staff.vo.UecStaffInfoVo;
import cn.ffcs.uom.common.vo.PageInfo;

@Service("uecStaffInfoManager")
@Scope("prototype")
public class UecStaffInfoManagerImpl implements UecStaffInfoManager {

	@Resource
	private UecStaffInfoDao uecStaffInfoDao;

	@Override
	public PageInfo queryPageInfoByUecStaffInfo(UecStaffInfo uecStaffInfo,
			int current, int pageSize) {
		return uecStaffInfoDao.queryPageInfoByUecStaffInfo(uecStaffInfo,
				current, pageSize);
	}

	public UecStaffInfo findUecStaffInfo(UecStaffInfo uecStaffInfo) {
		return uecStaffInfoDao.findUecStaffInfo(uecStaffInfo);
	}

	@Override
	public UecStaffInfo findUecStaffInfoOnly(String idName, String idNumber) {
		return uecStaffInfoDao.findUecStaffInfoOnly(idName, idNumber);
	}

	@Override
	public List<UecStaffInfo> findUecStaffInfoList(UecStaffInfo uecStaffInfo) {
		return uecStaffInfoDao.findUecStaffInfoList(uecStaffInfo);
	}

	@Override
	public UecStaffInfo quaryUecStaffInfoByCode(String code) {
		return uecStaffInfoDao.quaryUecStaffInfoByCode(code);
	}

	@Override
	public UecStaffInfo quaryUecStaffInfoByStaffId(Long staffId) {
		return uecStaffInfoDao.quaryUecStaffInfoByStaffId(staffId);
	}

	@Override
	public PageInfo queryPageInfoByUecStaffInfoVo(UecStaffInfoVo uecStaffInfoVo, int current, int pageSize) {
		return uecStaffInfoDao.queryPageInfoByUecStaffInfoVo(uecStaffInfoVo, current, pageSize);
	}
}
